<section class="hbox stretch">
    <header class="header bg-success bg-gradient">
        <p>Category</p>
    </header>
    <div class="row">
      	<div class="col-lg-12">
      		<!-- .breadcrumb -->
      		<ul class="breadcrumb"> <li><a href="<?php echo SITE_URL ?>"><i class="icon-home"></i>Home</a></li> <li><a href="<?php echo SITE_URL ?>/category"><i class="icon-folder-close"></i>Category</a></li> <li class="active">Edit</li>
      		</ul>
      		<!-- / .breadcrumb -->
      	</div>
  	</div>
  	<?php if($msg): ?>
  	<div class="alert alert-success"> <button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button> <i class="icon-ok-sign"></i> <?php echo $msg; ?> </div>
  	<?php endif; ?>
    <form action="" method="post" class="form-horizontal" data-validate="parsley">
      <div class="form-group">
      	<div class="form-group">
      		<label class="col-sm-3 control-label">Parent</label> <div class="col-sm-4">
      		<select class="form-control" name="category_parent">
	      		<option value="0">No parent</option>
	      		<?php echo $cateOpt; ?>
      		</select>
      		</div>
      	</div>

      	<div class="form-group">
      		<label class="col-sm-3 control-label">Category name</label> <div class="col-sm-4"> <input type="text" data-required="true" class="form-control parsley-validated" value="<?php echo $cateInfo['category_name'] ?>" name="category_name"> </div>
      	</div>

      	<div class="form-group">
      		<label class="col-sm-3 control-label">Category position</label>
      		<div class="col-sm-4"> <input value="<?php echo $cateInfo['category_order'] ?>" type="text" class="form-control" name="category_order" value="0" style="width:50px;">
      			<div class="checkbox"> <label> <input type="checkbox" name="category_activate" <?php echo $active = $cateInfo['category_activate'] > 0 ? 'checked' : '' ?> value="1"> Activate</a> </label>
      			</div>
      		</div>
      	</div>

      	<div class="form-group"> <div class="col-sm-4 col-sm-offset-3"> <button class="btn btn-white" type="reset">Reset</button> <button class="btn btn-s-md btn-info btn-primary" type="submit">Add</button> </div> </div>

      </div>

	</form>
</section>